﻿using System;
using System.Collections.Generic;
using System.Text;
using TL_Cloud.Core.Services;
using TL_Cloud.Models.BookShop;

namespace TL_Cloud.ViewModels.BookShop.BaseTeacher
{
    public class BaseTeacherPropertyMapping:PropertyMapping<BaseTeacherResource, Base_TeacherInfo>
    {
        public BaseTeacherPropertyMapping() : base(
           new Dictionary<string, List<MappedProperty>>(StringComparer.OrdinalIgnoreCase)
           {
               [nameof(BaseTeacherResource.TeacherId)] = new List<MappedProperty>
               {
                    new MappedProperty{ Name=nameof(Base_TeacherInfo.TeacherId),Revert=false }
               },
               [nameof(BaseTeacherResource.TeacherCode)] = new List<MappedProperty>
               {
                    new MappedProperty{ Name=nameof(Base_TeacherInfo.TeacherCode),Revert=false }
               },
               [nameof(BaseTeacherResource.TeacherName)] = new List<MappedProperty>
               {
                    new MappedProperty{ Name=nameof(Base_TeacherInfo.TeacherName),Revert=false }
               },
               [nameof(BaseTeacherResource.Email)]=new List<MappedProperty>
               {
                   new MappedProperty{ Name=nameof(Base_TeacherInfo.Email),Revert=false }
               },

               [nameof(BaseTeacherResource.HeadIcon)] = new List<MappedProperty>
               {
                   new MappedProperty{ Name=nameof(Base_TeacherInfo.HeadIcon),Revert=false }
               },

               [nameof(BaseTeacherResource.Qq)] = new List<MappedProperty>
               {
                   new MappedProperty{ Name=nameof(Base_TeacherInfo.Qq),Revert=false }
               },

               [nameof(BaseTeacherResource.Telephone)] = new List<MappedProperty>
               {
                   new MappedProperty{ Name=nameof(Base_TeacherInfo.Telephone),Revert=false }
               },

               [nameof(BaseTeacherResource.WeiXinCode)] = new List<MappedProperty>
               {
                   new MappedProperty{ Name=nameof(Base_TeacherInfo.WeiXinCode),Revert=false }
               },

           })
        {
        }

    }
}
